MCustomerAccountPg.widgets = {
	lvCustomerDisplay: ["wm.LiveVariable", {"autoUpdate":false,"inFlightBehavior":"executeLast","startUpdate":false,"type":"com.servicelivedb.data.Customer"}, {"onSuccess":"lvCustomerDisplaySuccess"}, {
		liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Customer","related":["block","project","door"],"view":[
{"caption":"CustomerId","sortable":true,"dataIndex":"customerId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"Address","sortable":true,"dataIndex":"address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"Email","sortable":true,"dataIndex":"email","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"UpdatedDt","sortable":true,"dataIndex":"updatedDt","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},
{"caption":"UpdatedBy","sortable":true,"dataIndex":"updatedBy","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},
{"caption":"Password","sortable":true,"dataIndex":"password","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},
{"caption":"Username","sortable":true,"dataIndex":"username","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},
{"caption":"Name","sortable":true,"dataIndex":"name","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"primaryPhone","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":10,"subType":null},
{"caption":"Type","sortable":true,"dataIndex":"type","type":"java.lang.String","displayType":"Text","required":true,"readonly":false,"includeLists":true,"includeForms":true,"order":11,"subType":null},
{"caption":"AlternateContact","sortable":true,"dataIndex":"alternateContact","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":12,"subType":null},
{"caption":"Pto","sortable":true,"dataIndex":"pto","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":13,"subType":null},
{"caption":"PtoMessage","sortable":true,"dataIndex":"ptoMessage","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14,"subType":null},
{"caption":"Vendor_msg","sortable":true,"dataIndex":"vendor_msg","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":15,"subType":null},
{"caption":"Min_order_amount","sortable":true,"dataIndex":"min_order_amount","type":"java.lang.Integer","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":16,"subType":null},
{"caption":"Shop_time","sortable":true,"dataIndex":"shop_time","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":17,"subType":null}
]}, {}],
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"[mobileMainPg].vUserId.dataValue","targetProperty":"filter.customerId"}, {}]
		}]
	}],
	ncDeactivateAccount: ["wm.NotificationCall", {"operation":"confirm"}, {"onCancel":"ncDeactivateAccountCancel"}, {
		input: ["wm.ServiceInput", {"type":"confirmInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":"\"Do you want to Deactivate your account?\"","targetProperty":"text"}, {}],
				wire1: ["wm.Wire", {"expression":"\"Yes Deactivate\"","targetProperty":"OKButtonText"}, {}],
				wire2: ["wm.Wire", {"expression":"\"No I want to keep the account active\"","targetProperty":"CancelButtonText"}, {}]
			}]
		}]
	}],
	svUpdateAccount: ["wm.ServiceVariable", {"inFlightBehavior":"executeLast","operation":"updateAccount","service":"ServiceLiveCommonService"}, {"onSuccess1":"ncUpdateAccount"}, {
		input: ["wm.ServiceInput", {"type":"updateAccountInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire3: ["wm.Wire", {"expression":undefined,"source":"lvCustomerDisplay.customerId","targetProperty":"customer.customerId"}, {}],
				wire8: ["wm.Wire", {"expression":"false","targetProperty":"isVendor"}, {}],
				wire1: ["wm.Wire", {"expression":undefined,"source":"doorLookup1.selectedItem.dataValue","targetProperty":"customer.door.doorName"}, {}],
				wire: ["wm.Wire", {"expression":undefined,"source":"blockLookup2.displayValue","targetProperty":"customer.block.blockName"}, {}],
				wire6: ["wm.Wire", {"expression":undefined,"source":"addressEditor1.displayValue","targetProperty":"customer.address"}, {}],
				wire7: ["wm.Wire", {"expression":undefined,"source":"activeEditor1.dataValue","targetProperty":"customer.active"}, {}],
				wire2: ["wm.Wire", {"expression":undefined,"source":"passwordEditor2.displayValue","targetProperty":"customer.password"}, {}],
				wire4: ["wm.Wire", {"expression":undefined,"source":"nameEditor2.dataValue","targetProperty":"customer.name"}, {}],
				wire5: ["wm.Wire", {"expression":undefined,"source":"primaryPhoneEditor2.dataValue","targetProperty":"customer.primaryPhone"}, {}]
			}]
		}]
	}],
	ncUpdateAccount: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":undefined,"source":"svUpdateAccount.dataValue","targetProperty":"text"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
				wire3: ["wm.Wire", {"expression":"\"bottom center\"","targetProperty":"dialogPosition"}, {}]
			}]
		}]
	}],
	loadingDialogDoor: ["wm.LoadingDialog", {"caption":"Updating account deails","captionWidth":"150px","serviceVariableToTrack":["svUpdateAccount"]}, {}, {
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"mainLayout","targetProperty":"widgetToCover"}, {}]
		}]
	}],
	mainLayout: ["wm.Layout", {"horizontalAlign":"left","styles":{},"verticalAlign":"top"}, {}, {
		panel1: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
			formPanel1: ["wm.FormPanel", {"autoScroll":true,"captionAlign":"left","captionSize":"86px","height":"100%","horizontalAlign":"center","type":"com.servicelivedb.data.Customer"}, {}, {
				emailEditor2: ["wm.Text", {"border":"0","caption":"Email","captionAlign":"left","captionSize":"86px","changeOnKey":true,"desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"25px","maxChars":50,"mobileHeight":"25px","readonly":true,"width":"100%"}, {}, {
					binding: ["wm.Binding", {}, {}, {
						wire: ["wm.Wire", {"expression":undefined,"source":"lvCustomerDisplay.email","targetProperty":"dataValue"}, {}]
					}]
				}],
				nameEditor2: ["wm.Text", {"border":"0","caption":"Name","captionAlign":"left","captionSize":"86px","changeOnKey":true,"desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"35px","maxChars":100,"required":true,"width":"100%"}, {}, {
					binding: ["wm.Binding", {}, {}, {
						wire: ["wm.Wire", {"expression":undefined,"source":"lvCustomerDisplay.name","targetProperty":"dataValue"}, {}]
					}]
				}],
				passwordEditor2: ["wm.Text", {"border":"0","caption":"Password","captionAlign":"left","captionSize":"86px","changeOnKey":true,"desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"35px","maxChars":50,"password":true,"required":true,"width":"100%"}, {}, {
					binding: ["wm.Binding", {}, {}, {
						wire: ["wm.Wire", {"expression":undefined,"source":"lvCustomerDisplay.password","targetProperty":"dataValue"}, {}]
					}]
				}],
				addressEditor1: ["wm.LargeTextArea", {"border":"0","caption":"Address","captionPosition":"left","captionSize":"86px","changeOnKey":true,"desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"52px","mobileHeight":"52px","width":"100%"}, {}, {
					binding: ["wm.Binding", {}, {}, {
						wire: ["wm.Wire", {"expression":undefined,"source":"lvCustomerDisplay.address","targetProperty":"dataValue"}, {}]
					}]
				}],
				activeEditor1: ["wm.Checkbox", {"border":"0","caption":"Keep Account Active","captionAlign":"left","captionSize":"86px","desktopHeight":"26px","displayValue":false,"emptyValue":"emptyString","height":"35px","showing":false,"singleLine":false,"width":"100%"}, {"onchange":"activeEditor1Change"}, {
					binding: ["wm.Binding", {}, {}, {
						wire: ["wm.Wire", {"expression":undefined,"source":"lvCustomerDisplay.active","targetProperty":"dataValue"}, {}]
					}]
				}],
				primaryPhoneEditor2: ["wm.Text", {"border":"0","caption":"Mobile","captionAlign":"left","captionSize":"86px","changeOnKey":true,"desktopHeight":"26px","displayValue":"","emptyValue":"emptyString","height":"35px","maxChars":"10","regExp":"^[0-9]{10}","required":true,"styles":{},"width":"100%"}, {}, {
					binding: ["wm.Binding", {}, {}, {
						wire: ["wm.Wire", {"expression":undefined,"source":"lvCustomerDisplay.primaryPhone","targetProperty":"dataValue"}, {}]
					}]
				}],
				blockLookup2: ["wm.Lookup", {"border":"0","caption":"Block","captionAlign":"left","captionSize":"86px","dataType":"EntryData","desktopHeight":"35px","displayField":"name","displayValue":"","height":"35px","required":true,"styles":{},"width":"310px"}, {"onchange":"blockLookup2Change"}, {
					binding: ["wm.Binding", {}, {}, {
						wire: ["wm.Wire", {"expression":undefined,"source":"[mobileMainPg].vProjectBlocks","targetProperty":"dataSet"}, {}],
						wire1: ["wm.Wire", {"expression":undefined,"source":"lvCustomerDisplay.block.blockName","targetProperty":"dataValue"}, {}]
					}]
				}],
				doorLookup1: ["wm.Lookup", {"border":"0","caption":"Door","captionAlign":"left","captionSize":"86px","dataValue":undefined,"desktopHeight":"35px","displayValue":"","height":"35px","required":true,"width":"310px"}, {}],
				button1: ["wm.Button", {"border":"1","caption":"Update My Account","height":"45px","imageIndex":88,"imageList":"app.silkIconList","mobileHeight":"45px","width":"293.80000019073486px"}, {"onclick":"svUpdateAccount"}, {
					binding: ["wm.Binding", {}, {}, {
						wire: ["wm.Wire", {"expression":"${nameEditor2.invalid} || ${passwordEditor2.invalid} || ${primaryPhoneEditor2.invalid} || ${blockLookup2.invalid} || ${doorLookup1.invalid}","targetProperty":"disabled"}, {}]
					}]
				}]
			}]
		}]
	}]
}